package com.patterns.demo.bridge;

/**
 * Author: SamGroves
 * <p>
 * Description: 桥接模式中的桥bridge
 * <p>
 * Date: 2017/12/3
 */
public abstract class Car {

    private Engine engine;

    public Car(Engine engine) {
        this.engine = engine;
    }

    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public abstract void installEngine();
}
